package com.stu.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.stu.commons.ServerResponse;
import com.stu.pojo.Myorder;

import java.util.List;


public interface IMyorderService  {
    public ServerResponse saveMyOrder(Myorder myorder);
    public ServerResponse updateMyorder(Myorder myorder);
    public ServerResponse getById(Integer myorderId);
    public List<Myorder> getAllOrderById(Integer userId);
    public Myorder selectById(Integer myorderId);
    public Myorder selectByOrderNumber(String myorderNumber);

    /* 我的订单页 */
    //全部订单：不查 4
    public ServerResponse getAll(Integer userId);

    //状态修改
    public int updateOrderStatus(String orderNum);
}
